package com.chrray.position.mapper.position;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chrray.position.domain.FdJobWorkerRel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 岗位-雇工关系表 持久层
 *
 * @author wusiwee
 * @email wusiwee@163.com
 * @since 1.0.1 2024-08-07
 */
@Mapper
public interface FdJobWorkerRelMapper extends BaseMapper<FdJobWorkerRel> {

    int updateState(@Param("postingsId") Long postingsId, @Param("userId") Long userId, @Param("state") Integer state);

    Integer selectCountByJobId(@Param("postingsId") Long postingsId);

    Integer selectEmpCountByJobId(@Param("postingsId") Long postingsId);
}
